<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>职场"笑面虎"行为观测与风险评估表</title>
    <style>
        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
            font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
        }
        
        body {
            background-color: #f5f7fa;
            color: #333;
            line-height: 1.6;
            padding: 20px;
        }
        
        .container {
            max-width: 1000px;
            margin: 0 auto;
            background: white;
            border-radius: 12px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
            overflow: hidden;
        }
        
        header {
            background: linear-gradient(135deg, #4a6fa5, #2c3e50);
            color: white;
            padding: 30px;
            text-align: center;
        }
        
        h1 {
            font-size: 28px;
            margin-bottom: 10px;
            font-weight: 600;
        }
        
        .subtitle {
            font-size: 16px;
            opacity: 0.85;
            max-width: 700px;
            margin: 0 auto;
        }
        
        .content {
            padding: 30px;
        }
        
        .section {
            margin-bottom: 40px;
            padding: 25px;
            background: #f9fafb;
            border-radius: 8px;
            border-left: 4px solid #4a6fa5;
        }
        
        h2 {
            color: #2c3e50;
            margin-bottom: 15px;
            font-size: 22px;
            font-weight: 600;
        }
        
        h3 {
            color: #4a6fa5;
            margin: 20px 0 15px;
            font-size: 18px;
        }
        
        .guide-box {
            background: #e8f4fc;
            padding: 20px;
            border-radius: 8px;
            margin-bottom: 25px;
            border-left: 4px solid #3498db;
        }
        
        .dimension {
            margin-bottom: 30px;
            padding: 20px;
            background: white;
            border-radius: 8px;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
        }
        
        .dimension-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 15px;
            padding-bottom: 10px;
            border-bottom: 1px solid #eaeaea;
        }
        
        .dimension-title {
            font-weight: 600;
            color: #2c3e50;
            font-size: 18px;
        }
        
        .dimension-weight {
            color: #7f8c8d;
            font-size: 14px;
            background: #f1f2f6;
            padding: 5px 10px;
            border-radius: 4px;
        }
        
        .checkbox-group {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 15px;
        }
        
        .checkbox-item {
            display: flex;
            align-items: flex-start;
            padding: 15px;
            background: #f8f9fa;
            border-radius: 8px;
            transition: all 0.2s;
            cursor: pointer;
        }
        
        .checkbox-item:hover {
            background: #f0f5ff;
        }
        
        .checkbox-item.selected {
            background: #e8f4fc;
            border: 1px solid #3498db;
            box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
        }
        
        .checkbox-item input {
            margin-right: 12px;
            margin-top: 3px;
        }
        
        .checkbox-content {
            flex: 1;
        }
        
        .checkbox-score {
            font-weight: 600;
            color: #2c3e50;
            margin-bottom: 5px;
            display: flex;
            align-items: center;
        }
        
        .score-badge {
            display: inline-block;
            background: #4a6fa5;
            color: white;
            font-size: 12px;
            padding: 2px 8px;
            border-radius: 10px;
            margin-left: 8px;
        }
        
        .checkbox-desc {
            font-size: 14px;
            color: #555;
        }
        
        .results-section {
            background: #f0f7ff;
            padding: 25px;
            border-radius: 8px;
            margin-top: 30px;
            display: none;
        }
        
        .score-display {
            text-align: center;
            margin: 20px 0;
        }
        
        .total-score {
            font-size: 48px;
            font-weight: 700;
            color: #2c3e50;
            margin: 10px 0;
        }
        
        .risk-level {
            font-size: 24px;
            font-weight: 600;
            padding: 10px 20px;
            border-radius: 30px;
            display: inline-block;
            margin: 15px 0;
        }
        
        .safe {
            background: #e8f6ef;
            color: #27ae60;
        }
        
        .observe {
            background: #fff9e6;
            color: #f39c12;
        }
        
        .alert {
            background: #fdebd0;
            color: #e67e22;
        }
        
        .danger {
            background: #fadbd8;
            color: #e74c3c;
        }
        
        .strategy-box {
            background: white;
            padding: 20px;
            border-radius: 8px;
            margin-top: 20px;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
        }
        
        .btn {
            background: #4a6fa5;
            color: white;
            border: none;
            padding: 12px 25px;
            border-radius: 6px;
            font-size: 16px;
            cursor: pointer;
            transition: background 0.3s;
            font-weight: 600;
        }
        
        .btn:hover {
            background: #3a5a80;
        }
        
        .btn-calculate {
            display: block;
            margin: 30px auto;
            padding: 15px 40px;
            font-size: 18px;
        }
        
        .btn-reset {
            background: #95a5a6;
            margin-left: 15px;
        }
        
        .btn-reset:hover {
            background: #7f8c8d;
        }
        
        .button-group {
            display: flex;
            justify-content: center;
        }
        
        .progress-container {
            margin: 15px 0;
        }
        
        .progress-label {
            display: flex;
            justify-content: space-between;
            margin-bottom: 5px;
        }
        
        .progress-bar {
            height: 10px;
            background: #ecf0f1;
            border-radius: 5px;
            overflow: hidden;
        }
        
        .progress-fill {
            height: 100%;
            background: #4a6fa5;
            border-radius: 5px;
            transition: width 0.5s;
        }
        
        @media (max-width: 768px) {
            .checkbox-group {
                grid-template-columns: 1fr;
            }
            
            .content {
                padding: 15px;
            }
            
            .section {
                padding: 15px;
            }
        }
    </style>
</head>
<body>
    <div class="container">
        <header>
            <h1>"笑面虎"行为观测与风险评估表</h1>
            <p class="subtitle">基于5大维度量化评估职场人际关系风险，帮助您识别潜在威胁并制定有效应对策略</p>
        </header>
        
        <div class="content">
            <div class="section guide-box">
                <h2>使用指南</h2>
                <p><strong>目的：</strong>本工具用于将您对某位同事的"模糊感觉"转化为可量化的风险评估，帮助您客观决策，避免情绪化误判。</p>
                <p><strong>方法：</strong>针对您观察的对象，回想近1-3个月内发生的具体事件，对以下五大维度进行评分。</p>
                <p><strong>频率：</strong>建议每季度或当您感觉不对劲时，重新评估一次。</p>
            </div>
            
            <div class="section">
                <h2>风险评估量表</h2>
                <p>请根据您对评估对象的观察，勾选所有符合实际情况的描述：</p>
                
                <div class="dimension" id="dimension1">
                    <div class="dimension-header">
                        <div class="dimension-title">维度一：言行一致度</div>
                        <div class="dimension-weight">权重: 30%</div>
                    </div>
                    <p class="dimension-desc">评估其"承诺"与"兑现"之间的差距。</p>
                    
                    <div class="checkbox-group">
                        <label class="checkbox-item">
                            <input type="checkbox" name="dimension1" value="1">
                            <div class="checkbox-content">
                                <div class="checkbox-score">始终如一 <span class="score-badge">1分</span></div>
                                <div class="checkbox-desc">说到做到，承诺基本兑现。</div>
                            </div>
                        </label>
                        <label class="checkbox-item">
                            <input type="checkbox" name="dimension1" value="3">
                            <div class="checkbox-content">
                                <div class="checkbox-score">基本可靠 <span class="score-badge">3分</span></div>
                                <div class="checkbox-desc">大部分承诺能兑现，偶有小事遗忘。</div>
                            </div>
                        </label>
                        <label class="checkbox-item">
                            <input type="checkbox" name="dimension1" value="5">
                            <div class="checkbox-content">
                                <div class="checkbox-score">看人下菜 <span class="score-badge">5分</span></div>
                                <div class="checkbox-desc">对上级言出必行，对平级/下属时常打折扣。</div>
                            </div>
                        </label>
                        <label class="checkbox-item">
                            <input type="checkbox" name="dimension1" value="7">
                            <div class="checkbox-content">
                                <div class="checkbox-score">习惯性落差 <span class="score-badge">7分</span></div>
                                <div class="checkbox-desc">经常承诺过但无法兑现，且总有"正当理由"。</div>
                            </div>
                        </label>
                        <label class="checkbox-item">
                            <input type="checkbox" name="dimension1" value="9">
                            <div class="checkbox-content">
                                <div class="checkbox-score">两面三刀 <span class="score-badge">9分</span></div>
                                <div class="checkbox-desc">人前满口答应，人后从不行动，甚至反向操作。</div>
                            </div>
                        </label>
                    </div>
                </div>
                
                <div class="dimension" id="dimension2">
                    <div class="dimension-header">
                        <div class="dimension-title">维度二：信息透明度</div>
                        <div class="dimension-weight">权重: 25%</div>
                    </div>
                    <p class="dimension-desc">评估其在信息传递中的角色和动机。</p>
                    
                    <div class="checkbox-group">
                        <label class="checkbox-item">
                            <input type="checkbox" name="dimension2" value="1">
                            <div class="checkbox-content">
                                <div class="checkbox-score">直接坦荡 <span class="score-badge">1分</span></div>
                                <div class="checkbox-desc">信息传递直接、准确，不绕弯子。</div>
                            </div>
                        </label>
                        <label class="checkbox-item">
                            <input type="checkbox" name="dimension2" value="3">
                            <div class="checkbox-content">
                                <div class="checkbox-score">谨慎中立 <span class="score-badge">3分</span></div>
                                <div class="checkbox-desc">不主动传话，被问到时客观陈述。</div>
                            </div>
                        </label>
                        <label class="checkbox-item">
                            <input type="checkbox" name="dimension2" value="5">
                            <div class="checkbox-content">
                                <div class="checkbox-score">选择性分享 <span class="score-badge">5分</span></div>
                                <div class="checkbox-desc">会透露一些信息以换取好处或建立同盟。</div>
                            </div>
                        </label>
                        <label class="checkbox-item">
                            <input type="checkbox" name="dimension2" value="7">
                            <div class="checkbox-content">
                                <div class="checkbox-score">热衷传话 <span class="score-badge">7分</span></div>
                                <div class="checkbox-desc">经常充当"信息二传手"，并喜欢附加个人解读。</div>
                            </div>
                        </label>
                        <label class="checkbox-item">
                            <input type="checkbox" name="dimension2" value="9">
                            <div class="checkbox-content">
                                <div class="checkbox-score">挑唆拱火 <span class="score-badge">9分</span></div>
                                <div class="checkbox-desc">习惯性在A面前说B的不是，并强调"我是为你好"。</div>
                            </div>
                        </label>
                    </div>
                </div>
                
                <div class="dimension" id="dimension3">
                    <div class="dimension-header">
                        <div class="dimension-title">维度三：责任归属感</div>
                        <div class="dimension-weight">权重: 25%</div>
                    </div>
                    <p class="dimension-desc">评估其在问题与成果面前的表现。</p>
                    
                    <div class="checkbox-group">
                        <label class="checkbox-item">
                            <input type="checkbox" name="dimension3" value="1">
                            <div class="checkbox-content">
                                <div class="checkbox-score">敢于担当 <span class="score-badge">1分</span></div>
                                <div class="checkbox-desc">主动承担责任，积极解决问题。</div>
                            </div>
                        </label>
                        <label class="checkbox-item">
                            <input type="checkbox" name="dimension3" value="3">
                            <div class="checkbox-content">
                                <div class="checkbox-score">界限分明 <span class="score-badge">3分</span></div>
                                <div class="checkbox-desc">属于自己的责任不推诿。</div>
                            </div>
                        </label>
                        <label class="checkbox-item">
                            <input type="checkbox" name="dimension3" value="5">
                            <div class="checkbox-content">
                                <div class="checkbox-score">模糊边界 <span class="score-badge">5分</span></div>
                                <div class="checkbox-desc">习惯用"我们"来模糊个人责任。</div>
                            </div>
                        </label>
                        <label class="checkbox-item">
                            <input type="checkbox" name="dimension3" value="7">
                            <div class="checkbox-content">
                                <div class="checkbox-score">避重就轻 <span class="score-badge">7分</span></div>
                                <div class="checkbox-desc">出现问题时会找借口，或把原因引向外部。</div>
                            </div>
                        </label>
                        <label class="checkbox-item">
                            <input type="checkbox" name="dimension3" value="9">
                            <div class="checkbox-content">
                                <div class="checkbox-score">功魁祸首 <span class="score-badge">9分</span></div>
                                <div class="checkbox-desc">功劳都是他的，责任都是别人的。</div>
                            </div>
                        </label>
                    </div>
                </div>
                
                <div class="dimension" id="dimension4">
                    <div class="dimension-header">
                        <div class="dimension-title">维度四：利益反应模式</div>
                        <div class="dimension-weight">权重: 15%</div>
                    </div>
                    <p class="dimension-desc">评估在面临（即使是微小的）利益冲突时的本能反应。</p>
                    
                    <div class="checkbox-group">
                        <label class="checkbox-item">
                            <input type="checkbox" name="dimension4" value="1">
                            <div class="checkbox-content">
                                <div class="checkbox-score">公平竞争 <span class="score-badge">1分</span></div>
                                <div class="checkbox-desc">崇尚公平，赢得光明，输得大度。</div>
                            </div>
                        </label>
                        <label class="checkbox-item">
                            <input type="checkbox" name="dimension4" value="3">
                            <div class="checkbox-content">
                                <div class="checkbox-score">适度争取 <span class="score-badge">3分</span></div>
                                <div class="checkbox-desc">会为自己争取，但遵循规则。</div>
                            </div>
                        </label>
                        <label class="checkbox-item">
                            <input type="checkbox" name="dimension4" value="5">
                            <div class="checkbox-content">
                                <div class="checkbox-score">心思活络 <span class="score-badge">5分</span></div>
                                <div class="checkbox-desc">会动用一些关系或小手段争取利益。</div>
                            </div>
                        </label>
                        <label class="checkbox-item">
                            <input type="checkbox" name="dimension4" value="7">
                            <div class="checkbox-content">
                                <div class="checkbox-score">零和博弈 <span class="score-badge">7分</span></div>
                                <div class="checkbox-desc">视他人为竞争对手，有赢家通吃的心态。</div>
                            </div>
                        </label>
                        <label class="checkbox-item">
                            <input type="checkbox" name="dimension4" value="9">
                            <div class="checkbox-content">
                                <div class="checkbox-score">不择手段 <span class="score-badge">9分</span></div>
                                <div class="checkbox-desc">为达目的，可在背后诋毁、拆台、抢夺。</div>
                            </div>
                        </label>
                    </div>
                </div>
                
                <div class="dimension" id="dimension5">
                    <div class="dimension-header">
                        <div class="dimension-title">维度五：人后评价</div>
                        <div class="dimension-weight">权重: 5%</div>
                    </div>
                    <p class="dimension-desc">评估其在不同场合评价他人时的一致性。</p>
                    
                    <div class="checkbox-group">
                        <label class="checkbox-item">
                            <input type="checkbox" name="dimension5" value="1">
                            <div class="checkbox-content">
                                <div class="checkbox-score">始终中肯 <span class="score-badge">1分</span></div>
                                <div class="checkbox-desc">人前人后评价一致，对事不对人。</div>
                            </div>
                        </label>
                        <label class="checkbox-item">
                            <input type="checkbox" name="dimension5" value="3">
                            <div class="checkbox-content">
                                <div class="checkbox-score">略有保留 <span class="score-badge">3分</span></div>
                                <div class="checkbox-desc">私下评价会更直接，但不会恶意贬低。</div>
                            </div>
                        </label>
                        <label class="checkbox-item">
                            <input type="checkbox" name="dimension5" value="5">
                            <div class="checkbox-content">
                                <div class="checkbox-score">判若两人 <span class="score-badge">5分</span></div>
                                <div class="checkbox-desc">当面极力赞美，背后吐槽缺点。</div>
                            </div>
                        </label>
                        <label class="checkbox-item">
                            <input type="checkbox" name="dimension5" value="7">
                            <div class="checkbox-content">
                                <div class="checkbox-score">习惯性贬低 <span class="score-badge">7分</span></div>
                                <div class="checkbox-desc">背后议论他人时，多以负面评价为主。</div>
                            </div>
                        </label>
                        <label class="checkbox-item">
                            <input type="checkbox" name="dimension5" value="9">
                            <div class="checkbox-content">
                                <div class="checkbox-score">恶意中伤 <span class="score-badge">9分</span></div>
                                <div class="checkbox-desc">会无中生有或恶意揣测，散布对他不利的言论。</div>
                            </div>
                        </label>
                    </div>
                </div>
                
                <div class="button-group">
                    <button class="btn btn-calculate" id="calculateBtn">计算风险评估结果</button>
                    <button class="btn btn-reset" id="resetBtn">重置评估</button>
                </div>
            </div>
            
            <div class="results-section" id="resultsSection">
                <h2>风险评估结果</h2>
                
                <div class="score-display">
                    <div>您的评估总分</div>
                    <div class="total-score" id="totalScore">0.0</div>
                    <div class="risk-level" id="riskLevel">安全区</div>
                </div>
                
                <div class="progress-container">
                    <div class="progress-label">
                        <span>低风险</span>
                        <span>高风险</span>
                    </div>
                    <div class="progress-bar">
                        <div class="progress-fill" id="progressFill" style="width: 0%"></div>
                    </div>
                </div>
                
                <div class="strategy-box">
                    <h3>应对策略建议</h3>
                    <div id="strategyContent">
                        <p>请完成上方评估以获取个性化策略建议。</p>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <script>
        document.addEventListener('DOMContentLoaded', function() {
            // 初始化复选框的点击事件
            const checkboxes = document.querySelectorAll('input[type="checkbox"]');
            checkboxes.forEach(checkbox => {
                checkbox.addEventListener('change', function() {
                    const parentItem = this.closest('.checkbox-item');
                    if (this.checked) {
                        parentItem.classList.add('selected');
                    } else {
                        parentItem.classList.remove('selected');
                    }
                });
            });
            
            // 计算按钮点击事件
            document.getElementById('calculateBtn').addEventListener('click', function() {
                calculateResults();
            });
            
            // 重置按钮点击事件
            document.getElementById('resetBtn').addEventListener('click', function() {
                resetAssessment();
            });
        });
        
        function calculateResults() {
            const dimensions = [
                { id: 'dimension1', weight: 0.30 },
                { id: 'dimension2', weight: 0.25 },
                { id: 'dimension3', weight: 0.25 },
                { id: 'dimension4', weight: 0.15 },
                { id: 'dimension5', weight: 0.05 }
            ];
            
            let totalScore = 0;
            let allSelected = true;
            
            // 计算加权总分
            dimensions.forEach(dim => {
                const checkedBoxes = document.querySelectorAll(`#${dim.id} input[type="checkbox"]:checked`);
                if (checkedBoxes.length === 0) {
                    allSelected = false;
                    return;
                }
                
                // 计算该维度的平均分
                let dimScore = 0;
                checkedBoxes.forEach(box => {
                    dimScore += parseInt(box.value);
                });
                dimScore = dimScore / checkedBoxes.length;
                
                totalScore += dimScore * dim.weight;
            });
            
            if (!allSelected) {
                alert('请至少为每个维度选择一个选项后再计算结果。');
                return;
            }
            
            // 显示结果区域
            document.getElementById('resultsSection').style.display = 'block';
            
            // 更新总分
            document.getElementById('totalScore').textContent = totalScore.toFixed(1);
            
            // 更新进度条
            const progressPercentage = (totalScore / 9) * 100;
            document.getElementById('progressFill').style.width = `${progressPercentage}%`;
            
            // 确定风险等级和显示策略
            let riskLevel, riskClass, strategy;
            
            if (totalScore >= 1.0 && totalScore <= 3.0) {
                riskLevel = "安全区";
                riskClass = "safe";
                strategy = `
                    <p><strong>画像：</strong>值得信赖的伙伴。</p>
                    <p><strong>行动策略：</strong>深度协作，可发展为事业盟友。</p>
                `;
            } else if (totalScore > 3.0 && totalScore <= 5.0) {
                riskLevel = "观察区";
                riskClass = "observe";
                strategy = `
                    <p><strong>画像：</strong>普通同事，存在一些需警惕的瑕疵。</p>
                    <p><strong>行动策略：</strong>日常协作，但<strong>关键事务需书面确认</strong>，避免在利益相关点上过度依赖。</p>
                `;
            } else if (totalScore > 5.0 && totalScore <= 7.0) {
                riskLevel = "警戒区";
                riskClass = "alert";
                strategy = `
                    <p><strong>画像：</strong>高风险对象，"笑面虎"潜质者。</p>
                    <p><strong>行动策略：</strong></p>
                    <ul>
                        <li><strong>启动公众化原则：</strong>所有关键沟通在邮件或群聊中进行。</li>
                        <li><strong>实施事实锚定法：</strong>回应其模糊表述时，要求其提供具体事例。</li>
                        <li><strong>在心中将其从"潜在伙伴"名单移至"需谨慎合作对象"。</strong></li>
                    </ul>
                `;
            } else {
                riskLevel = "危险区";
                riskClass = "danger";
                strategy = `
                    <p><strong>画像：</strong>高度疑似"笑面虎"，损害性极高。</p>
                    <p><strong>行动策略：</strong></p>
                    <ul>
                        <li><strong>物理隔离：</strong>尽量减少必要工作外的任何接触。</li>
                        <li><strong>全面防御：</strong>严格遵循本工具包后续的《话术模拟器》与《决策图》。</li>
                        <li><strong>核心建议：</strong><strong>敬而远之</strong>，做好随时应对其发起攻击的预案。</li>
                    </ul>
                `;
            }
            
            // 更新风险等级显示
            const riskLevelElement = document.getElementById('riskLevel');
            riskLevelElement.textContent = riskLevel;
            riskLevelElement.className = `risk-level ${riskClass}`;
            
            // 更新策略内容
            document.getElementById('strategyContent').innerHTML = strategy;
            
            // 滚动到结果区域
            document.getElementById('resultsSection').scrollIntoView({ behavior: 'smooth' });
        }
        
        function resetAssessment() {
            // 清除所有选中状态
            document.querySelectorAll('input[type="checkbox"]').forEach(checkbox => {
                checkbox.checked = false;
            });
            
            document.querySelectorAll('.checkbox-item').forEach(item => {
                item.classList.remove('selected');
            });
            
            // 隐藏结果区域
            document.getElementById('resultsSection').style.display = 'none';
            
            // 重置进度条
            document.getElementById('progressFill').style.width = '0%';
        }
    </script>
</body>
</html>